package com.t.codebook.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

 /**
 * 代码详情;
 * @author : http://www.chiner.pro
 * @date : 2024-8-25
 */
@Data
@ApiModel(value = "代码详情",description = "")
@TableName("code")
public class Code  implements Serializable,Cloneable{
    /** id */
    @ApiModelProperty(name = "id",notes = "")
    @TableId
    private Long id ;
    /** 标题 */
    @ApiModelProperty(name = "标题",notes = "")
    @TableField(value = "title")
    private String title ;
    /** 代码功能描述 */
    @ApiModelProperty(name = "代码功能描述",notes = "")
    @TableField(value = "description")
    private String description ;
    /** 代码 */
    @ApiModelProperty(name = "代码",notes = "")
    @TableField(value = "code")
    private String code ;
    /** 标签列表（json;数组） */
    @ApiModelProperty(name = "标签列表（json",notes = "数组）")
    @TableField(value = "tags")
    private String tags ;
    /** 推荐答案 */
    @ApiModelProperty(name = "推荐答案",notes = "")
    @TableField(value = "answer")
    private String answer ;
    /** 创建用户;id */
    @ApiModelProperty(name = "创建用户",notes = "id")
    @TableField(value = "userid")
    private Long userId ;
    /** 编辑时间 */
    @ApiModelProperty(name = "编辑时间",notes = "")
    private Date editTime ;
    /** 创建时间 */
    @ApiModelProperty(name = "创建时间",notes = "")
    private Date createTime ;
    /** 更新时间 */
    @ApiModelProperty(name = "更新时间",notes = "")
    private Date updateTime ;
    /** 是否删除 */
    @ApiModelProperty(name = "是否删除",notes = "")
    private String isDelete ;


}